<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script src="moment.js"></script>
    <script>
      console.log(moment().format("YYYY-MM-DD HH:mm:ss"));

      const date = moment("1992-02-22 10:12:12");
      console.log(date.format("YYYY-MM-DD"));

      console.log(date.add(10, "days").format("YYYY-MM-DD"));
    </script>
  </body>
</html>
